<template>
	<view class="agreement">
		<u-navbar :titleStyle="{fontWeight:'bold'}"  :title="title" />
		<u-parse :content="content"></u-parse>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title:'',
				content:''
			};
		},
		onLoad(e){
			this.title = e.name
			this.getagremt(e.type)
		},
		methods:{
			getagremt(e){
				uni.$u.http.get('/api/index/defInfo?type=' + e).then(res=>{
					const {content} = res.data
					this.content = content
				})
			}
		}
		
	}
</script>

<style lang="scss">
.agreement{
	padding: 10px;
}
</style>
